package com.wooming.studentinfosystem.service.impl;

import com.wooming.studentinfosystem.mapper.StudentStatsMapper;
import com.wooming.studentinfosystem.service.interf.StudentStats;
import com.wooming.studentinfosystem.vo.StatsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 学生统计服务实现类
 *
 * @author wooming
 */
@Service
public class StudentStatsService implements StudentStats {

    @Autowired
    private StudentStatsMapper studentStatsMapper;

    @Override
    public StatsVO calculateStatistics() {
        return studentStatsMapper.getBaseStatistics();
    }
}
